package com.phone.modules.pms.model;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 手机信息表
 * </p>
 *
 * @author WangHao
 * @since 2022-04-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("pms_product")
@ApiModel(value="PmsProduct对象", description="")
public class PmsProduct implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "品牌id")
    private Long brandId;

    @ApiModelProperty(value = "品牌名称")
    private String brandName;

    @ApiModelProperty(value = "手机名称")
    private String productName;

    @ApiModelProperty(value = "手机图片")
    private String pic;

    @ApiModelProperty(value = "发售日期")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date saleTime;

    @ApiModelProperty(value = "处理器")
    private String processor;

    @ApiModelProperty(value = "测试内存组合")
    private String ramVersion;

    @ApiModelProperty(value = "发售价格")
    private BigDecimal price;

    @ApiModelProperty(value = "测试版本")
    private String systemVersion;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "逻辑删除状态：0->未删除；1->已删除")
    @TableLogic(value = "0", delval = "1")
    private Integer deleteStatus;

    @ApiModelProperty(value = "手机分类类型：0->曲面屏;1->直屏")
    private Integer productCategoryType;

    @ApiModelProperty(value = "推荐状态；0->不推荐；1->推荐")
    private Integer recommandStatus;

    @ApiModelProperty(value = "创建者")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新者")
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;


}
